/**
 * Created by tanbingqin on 2020/3/11.
 */
import React, { Component, PropTypes } from "react";
import { connect } from 'react-redux';
import { Affix } from 'antd'
import GoBackBtn from 'containers/request/btns/go-back-btn'

class BottomBlock extends Component {
  constructor(props) {
    super(props);
    this.state = {

    }
  }

  render() {
    const { close } = this.context;
    return (
      <Affix offsetBottom={0} className='bottom-bar'>
        <GoBackBtn goBack={close} />
      </Affix>
    )
  }
}

BottomBlock.contextTypes = {
  applicant: PropTypes.object,
  creditScore: PropTypes.object,
  jobInfo: PropTypes.object,
  form: PropTypes.object,
  info: PropTypes.object,
  close: PropTypes.func,
};

function mapStateToProps(state) {
  return {

  }
}

export default connect(mapStateToProps)(BottomBlock)
